<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎莅临</title>
<link href="/storage/css/default.css" rel="stylesheet" type="text/css" />
<style>
.login_box{
	float:left;
	border:2px solid #ccc;
	width:165px;
	height:auto;
	padding:20px;
	}
.txt_input{
	width:250px;
	border:1px solid #bbb;
	padding:2px;
	}
</style>

<script type="text/javascript">
function change_v(id){
	var v_obj=document.getElementById(id);
	v_obj.style.backgroundImage="url(/tools.php?do=v&"+Math.random()+")";
//	v_obj.style.paddingLeft="40px";
//	
//	v_obj.style.width='110px';
//alert('ddddeeddd');
}
function show_submit_div(){
	var sd = document.getElementById('submit_div');

	if(sd.style.display=='none'){
		sd.style.display='block';
		
	}else{
		sd.style.display='none';
	}
	
}

</script>

</head>
<body>


<?php include('head.php') ?>

<div class="body">
	<table cellspacing="0" border="0" width="100%">
		<tr><td width="75%" valign="top">
			<table cellpadding="0" cellspacing="2" border="0" width="100%"><!-- 左边 -->
			<?php
			echo $__ITEMS['topic_list'];
			?>
			<tr bgcolor="#bbbbbb">
				<td style="padding:8px;border-left:5px solid #444444"><strong style="font-size:14px;"><a href="#sub" onclick="show_submit_div();">『我要发表技术文章』</a></strong></td>
			</tr>
			<tr bgcolor="#ffffff">
				
				<td style="padding:8px 18px 8px 18px;">
			
					<div id="submit_div" style="display:block<?php //echo $__ERRORS?'block':'none' ?>;">
						<form method="POST" action="/club.php?do=new_topic">
							<table>
								<tr><td align="right">文章标题：</td><td><select class="txt_input" name="type" style="width:100px;">
														<?php echo $__ITEMS['topic_type_list'] ?>
														</select><input type="text" name="title" id="title" class="txt_input" style="width:450px;" value="<?php echo $__ITEMS['title'] ?>"   /><?php html_showMessages_($__ERRORS['title'],'#f00','<br />'); ?></td></tr>
								<tr><td align="right">文章内容：</td><td><textarea name="body" id="body" rows="10" class="txt_input" style="width:550px;" ><?php echo $__ITEMS['body'] ?></textarea><?php html_showMessages_($__ERRORS['body'],'#f00','<br />'); ?></td></tr>
								<tr><td align="right">发布范围&nbsp;：</td><td style="font-size:14px;font-weight:bold;">
											<?php html_RadioBox_('zone','club',$__ITEMS['zone']?$__ITEMS['zone']:true,'club','style="width:18px;height:18px;"'); ?><label for="club"> Club区域.</label>&nbsp;
											<?php html_RadioBox_('zone','public',$__ITEMS['zone'],'public','style="width:18px;height:18px;"'); ?><label for="public"> 公共区域.</label></td></tr>
								<tr><td align="right">相关图片：</td><td><input type="text" name="image" id="image" class="txt_input" style="width:550px;" onfocus="this.value='';" value="<?php echo $__ITEMS['image']?$__ITEMS['image']:"http://" ?>"   /><?php html_showMessages_($__ERRORS['image'],'#f00','<br />'); ?></td></tr>
								<tr><td></td><td><input class="txt_input" type="submit" value="提交" />&nbsp;&nbsp;<input class="txt_input" type="reset" value="重置" /></td></tr>
							</table>
							<a name="sub" />
						</form>
					</div>
					
				</td>
			
			</tr>
			<tr><td><center><hr width="30%" size="1" /><br /></center></td></tr>
			</table>
		</td>
		<td  valign="top"><!-- 右边 -->
			<table cellpadding="0" cellspacing="2" border="0" width="100%">

				<tr bgcolor="#dddddd">
					<td style="padding:8px;" align="right"><strong style="font-size:14px;">板块导航!</strong></td>
				</tr>
				<tr>
					<td style="padding:8px;" align="left"><?php foreach ($__ITEMS['topic_type_array'] as $value){echo $value['topic_type_name'],'&nbsp;';} ?></td>
				</tr>
				
				<tr bgcolor="#dddddd">
					<td style="padding:8px;" align="right"><a href="/club.php?do=out"><strong style="font-size:14px;">&gt;&gt;&gt;退出登录</strong></a></td>
				</tr>
				<tr bgcolor="#dddddd">
					<td style="padding:8px;" align="right"><strong style="font-size:14px;"><?php $user_token=tools_get_session__('user_token'); echo $user_token['club_user_email']?$user_token['club_user_email']:'匿名用户' ?></strong></td>
				</tr>
				
				
				<tr bgcolor="#dddddd">
					<td style="padding:8px;"><form method="GET" action="/club_search.php"><input onfocus="this.value='';" name="w" class="txt_input" style="width:150px;" type="text" value="请输入:日期、标题或Email" />&nbsp;<input class="txt_input" style="width:50px;height:22px;" type="submit" value="搜索" ></form></td>
				</tr>
				
				<tr>
					<td style="padding:8px;" align="left"><hr size="1" /></td>
				</tr>

				<tr bgcolor="#dddddd">
					<td style="padding:8px;" align="right"><strong style="font-size:14px;">友情链接</strong></td>
				</tr>
				<tr>
					<td style="padding:8px;" align="left"><?php foreach ($__ITEMS['friend_link_list'] as $key => $value){//打印友情连接
												echo '&nbsp;<a href="'.$value['friend_link_url'].'">'.$value['friend_link_txt'].'</a>&nbsp;';
											} ?></td>
				</tr>
				<?php include('ad.tpl.php') ?>

			</table>
		</td>
		
		</tr>
	</table>

</div>

</div>
<?php include('foot.php') ?>
</body>
</html>
